﻿using System;
using System.Diagnostics;

namespace HBase {
    public class CpuTask :ZtTask {

        protected override bool onlyOneTimeAsync() {

            time = 480;
            return true;
        }
        protected override bool HaRun() {
            return true;
        }
        

        public override bool excute() {

            while (true) {
                object v = MyConsole.getOne();
                if (v != null) {
                    Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff-") + v.ToString());

                } else {
                    break;
                }
            }


           
            return true;
        }



    }



}
